﻿using UnityEngine;
using System.Collections;

public class GUI_Button : MonoBehaviour {

	public Texture2D imgBtn = null;
	public Texture2D imgExit = null;

	private void OnGUI(){
		float size = Screen.width / 8;
		if (GUI.Button (new Rect (Screen.width-(size*2.5f), 5, size, size), imgBtn)) {
			game.gameStarted = false;
		}
		if (GUI.Button (new Rect (Screen.width-size, 5, size, size), imgExit)) {
			Application.LoadLevel(0);
		}
	}
}
